<script type="text/javascript">
$(document).ready(function(){ 
	$("#abconf").click(function(){
		
		if($("#abconf").attr("checked")==true){
			$("#replaceText").css('display','inline')
		}else{
			$("#replaceText").css('display','none');
		}
	});
});
</script>
<table class="widefat"> 
		<thead> 
			<tr> 
				<th width="10%">网站名称</th>
				<th width="25%">feed地址</th>
				<th width="25%">过滤范围</th>
                <th width="10%">时间</th>
				<th width="10%">评论</th>
				<th width="10%">Slug</th>
			  	<th width="10%">删除</th>
			</tr> 
		</thead> 
		<tbody> 
            
		{% for l in list %}
		<tr valign="middle" id="link-1">
			<td>{{l.name}}</td>
            <td><a href="{{l.feedurl}}" target="_blank">{{l.feedurl}}</a></td>
		  	<td>{{l.abconf}}<span style="padding-left:10px;"></span>{% if l.repReg %}<span style="color:#FF8566;">{{l.repReg}}</span>{% endif %}</td>
            <td>{{l.autoTimeFormat}}</td>
            <td>{% if l.allow_comment %}开启{% else %}关闭{% endif %}</td>
			<td>{% if l.autoUrl %}开启{% else %}关闭{% endif %}</td>
			<td><a href="?delid={{l.name}}">删除</a></td>
		</tr> 
		{% endfor %}
	</tbody> 
</table>

<form action="" method="post">
<table class="widefat" style="margin-top:50px;">
    <tr>
        <td width="100px" align="right">网站名称</td>
        <td width="40%" align="left"><input type="text" value="百度空间" name="name" style="width:90%;"/></td>
        <td align="left">*</td>
    </tr>
    <tr>
        <td width="100px" align="right">RSS源地址</td>
        <td width="40%" align="left"><input type="text" value="" name="feedurl" style="width:90%;"/></td>
        <td align="left">*</td>
    </tr>
    <tr>
        <td width="100px" align="right">过滤范围</td>
        <td width="40%" align="left" colspan="2">
            链接过滤<input name="abconf" type="checkbox" value="0">
			图片过滤<input name="abconf" type="checkbox" value="1">
			文字替换<input id="abconf" name="abconf" type="checkbox" value="2">
                <input id="replaceText" type="text" name="repReg" style="display:none;"/>
        </td>
    </tr>
    <tr>
        <td width="100px" align="right">时间同步</td>
        <td width="40%" align="left"><input type="text" name="autoTimeFormat"/></td>
        <td align="left">请先根据RSS设置正确的时间表达式,如:%Y-%m-%d %H:%M</td>
    </tr>
    <tr>
        <td width="100px" align="right">开启评论</td>
        <td width="40%" align="left"><input type="checkbox" name="allowComment"/></td>
        <td align="left"></td>
    </tr>
    <tr>
        <td width="100px" align="right">自动SLUG</td>
        <td width="40%" align="left"><input type="checkbox" name="autoUrl"/></td>
        <td align="left"></td>
    </tr>
    <tr>
        <td></td>
        <td colspan="2">
            <input type="submit" value="添加">
        </td>
    </tr>
</table>
</form>

<p>
	*功能列表
	<ul><li>支持gb2312/gbk编码RSS的处理</li><li>自动slug构建</li><li>替换文本代理过滤链接</li></ul>
</p>
<p>
	*文件替换表达式 <span style="color:#FF8566;">value:replecValue,value:replecValue,.....</span>
	<div>e.g: www.baidu.com:xxx博客:aaa博客</div>
</p>
 